class Student(object):
    '''
    增加计数属性，每次实例化，都会显示总计人数
    '''
    count = 0

    def __init__(self, score):
        self.score = score
        Student.count += 1

    def get_score(self):
        return self.score

    def set_score(self, value):
        self.score = value


liuchaojun = Student(97)
liuchaojun1 = Student(96)
liuchaojun2 = Student(95)
liuchaojun3 = Student(94)
liuchaojun4 = Student(93)
liuchaojun5 = Student(92)
print(Student.count)